<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>一个多用户博客后台</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="favicon.ico"> <link href="../public/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="../public/css/font-awesome.css?v=4.4.0" rel="stylesheet">

    <link href="../public/css/animate.css" rel="stylesheet">
    <link href="../public/css/style.css?v=4.1.0" rel="stylesheet">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <script>if(window.top !== window.self){ window.top.location = window.location;}</script>
</head>

<body class="gray-bg">

    <div class="middle-box text-center loginscreen  animated fadeInDown">
        <div>
            <div>

                <h1 class="logo-name">H+</h1>

            </div>
            <h3>欢迎使用 H+</h3>

            {{if error}}
            <div class="alert alert-danger alert-dismissable" style="padding-top:5px;padding-bottom: 5px">
                <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
                {{error}}
            </div>
            {{/if}}
            <form class="m-t" role="form" action="/admin/login" method="POST">
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="用户名" required="" name="name">
                </div>
                <div class="form-group">
                    <input type="password" class="form-control" placeholder="密码" required="" name="password">
                </div>
                <div class="form-group">
                    <div class="col-sm-7" style="padding-left:0px">
                            <input type="text" class="form-control" placeholder="验证码" required="" name="capt">
                    </div>
                    <div class="col-sm-5" style="padding-left:0px">
                            <img src="/captcha" onclick="this.src= this.src+'?'+Math.random()" style="height:34px;">
                    </div>
                   <div class="clearfix"></div>
                </div>
                <button type="submit" class="btn btn-primary block full-width m-b">登 录</button>


                <p class="text-muted text-center"> <a href="login.html#"><small>忘记密码了？</small></a> | <a href="/admin/register">注册一个新账号</a>
                </p>

            </form>
        </div>
    </div>

    <!-- 全局js -->
    <script src="../public/js/jquery.min.js?v=2.1.4"></script>
    <script src="../public/js/bootstrap.min.js?v=3.3.6"></script>


</body>

</html>
